package com.smartcampusbackend.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("grade")
public class Grade {
    @TableId(type = IdType.AUTO)
    private String id;
    
    private String studentId;
    
    private String courseId;
    
    private Double regularGrade; // 平时成绩
    
    private Double examGrade; // 期末成绩
    
    private Double finalGrade; // 最终成绩
    
    private String semester;
    
    private LocalDateTime createTime;
    
    private LocalDateTime updateTime;
    
    @Override
    public String toString() {
        return "Grade{" +
                "id='" + id + '\'' +
                ", studentId='" + studentId + '\'' +
                ", courseId='" + courseId + '\'' +
                ", regularGrade=" + regularGrade +
                ", examGrade=" + examGrade +
                ", finalGrade=" + finalGrade +
                ", semester='" + semester + '\'' +
                '}';
    }
} 